package shell

import (
	"runtime"
)

func OpenBrowser(uri string) (err error) {
	switch runtime.GOOS {
	case "windows":
		_, err = Exec("start", uri)
	case "darwin":
		_, err = Exec("open", uri)
	case "linux":
		_, err = Exec("xdg-open", uri)
	}
	return
}
